import pandas as pd

# 读取Excel文件
file_path = '6.xls'  # 修改为你的Excel文件路径
df = pd.read_excel(file_path, usecols=[0, 1], names=['English', 'Chinese'], header=None)

# 整理格式
formatted_words = [f"{eng} [{chn}]" for eng, chn in zip(df['English'], df['Chinese'])]

# 每行展示5个单词
for i in range(0, len(formatted_words), 5):
    row = ' '.join(formatted_words[i:i+5])
    print(row)
